# delimit ;

clear all;
clear matrix;
set mem 800m;
set more off;

*add your path here:;
cd "C:\Users\jamesCabral\OneDrive - DAZ\CGH_Empirical_Replication";


************************************************************************************************************;
cd "data\ATUS_AHTUS_raw_data\ATUS_ALL";
* when using data for 2003-2010 uncomment the following line; 
* use all_atus;

* when using all available data 2003-2019 uncomment the following line;
use ATUS_ALL_FINAL;

drop twoyear;

* same two-year definition as in Aguar et al. for entire time period;
gen twoyear = 0;
replace twoyear=1 if year == 2003 | year == 2004;
replace twoyear=2 if year == 2005 | year == 2006;
replace twoyear=3 if year == 2007 | year == 2008;
replace twoyear=4 if year == 2009 | year == 2010;
replace twoyear=5 if year == 2011 | year == 2012;
replace twoyear=6 if year == 2013 | year == 2014;
replace twoyear=7 if year == 2015 | year == 2016;
replace twoyear=8 if year == 2017 | year == 2018 | year == 2019;

/*
* define alternative two-year intervals, so as to have one for the NBER recession (2008-2009);
drop if year == 2003;
gen twoyear = 0;
replace twoyear=1 if year == 2004 | year == 2005;
replace twoyear=2 if year == 2006 | year == 2007;
replace twoyear=3 if year == 2008 | year == 2009;
replace twoyear=4 if year == 2010 | year == 2011;
replace twoyear=5 if year == 2012 | year == 2013;
replace twoyear=6 if year == 2014 | year == 2015;
replace twoyear=7 if year == 2016 | year == 2017;
replace twoyear=8 if year == 2018 | year == 2019;
*/
************************************************************************************************************;
gen age1=0;
replace age1=1 if age>=18 & age<=27;
gen age2=0;
replace age2=1 if age>=28 & age<=37;
gen age3=0;
replace age3=1 if age>=38 & age<=47;
gen age4=0;
replace age4=1 if age>=48 & age<=57;
gen age5=0;
replace age5=1 if age>=58 & age<=65;
gen educ1=0;
replace educ1=1 if grade<12;
gen educ2=0;
replace educ2=1 if grade==12;
gen educ3=0;
replace educ3=1 if grade>12 & grade<16;
gen educ4=0;
replace educ4=1 if grade>=16;

*adjust to working age population;
drop if age>65;
drop if age<18;
drop if other>0;

*tabout twoyear  [aw=weight_adj] using state_dataset_twoyear_all.xls, replace format(8) ptotal(none) lines (none)                            sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

*
*tabout twoyear if gestfips==1            [aw=weight_adj] using state_dataset_twoyear_temp.xls, replace format(8) h1(nil) h2(nil) h3(nil)  ptotal(none) lines (none) 	 sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);


tabout twoyear if gestfips==1            [aw=weight_adj] using state_dataset_twoyear_temp.xls, replace  format(8) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==2            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==4            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==5            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==6            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==8            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==9            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==10            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==11            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==12            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==13            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==15            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==16            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==17            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==18            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==19            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==20            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==21            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==22            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==23            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==24            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==25            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==26            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==27            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==28            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==29            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==30            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==31            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==32            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==33            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==34            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==35            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==36            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==37            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==38            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==39            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==40            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==41            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==42            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==44            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==45            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==46            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==47            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==48            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==49            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==50            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==51            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==53            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==54            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==55            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);

tabout twoyear if gestfips==56            [aw=weight_adj] using state_dataset_twoyear_temp.xls, append  format(8) h1(nil) h2(nil) h3(nil) ptotal(none) lines (none)    sum cells(mean gestfips N work_paper mean twoyear mean male mean age mean age1 mean age2 mean age3 mean age4 mean age5 mean educ1 mean educ2 mean educ3 mean educ4 mean spouse_emp mean married mean black mean hv_child mean num_child mean grade mean working mean unemp mean retired mean disabled mean student mean homemaker  mean work_paper mean worka_paper mean worku_paper mean leisure_paper mean ep_paper mean sleeping_paper mean esp_paper mean leisure_noesp_paper mean tv_paper mean otherleisure_paper mean socializing_paper mean home_paper mean homeproduction_paper mean homeown_paper mean shopping_paper mean othercare_paper mean childcare_paper mean other_paper mean education_paper mean civic_paper mean ownmedical_paper mean unclassified_paper) show(none);